#include "library.h"

void CheckD3DError(bool cond, const char* str = nullptr) {

    if (cond) return;

    char buffer[1024*2];
    sprintf(buffer, "Error: %s", str);
    MessageBoxA(nullptr, buffer, nullptr, MB_OK);
}

void OpenConsole() {

    AllocConsole();
    SetConsoleTitleW(L"Dll inject success.");
    freopen("CONOUT$", "w", stdout);
}
